polynomials with variables as inputs